package com.tengju.user.infrastructure.persistence.mybatis.mapper.dealer.custom;

import com.tengju.user.infrastructure.persistence.mybatis.dataobject.ClubMetaDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClubMetaDOCustomMapper {

    ClubMetaDO findByName(@Param("clubName") String clubName);

    int count(@Param("clubId") Long clubId, @Param("clubName") String clubName, @Param("founderIdCode") Long founderIdCode);

    List<ClubMetaDO> query(@Param("clubId") Long clubId, @Param("clubName") String clubName, @Param("founderIdCode") Long founderIdCode, @Param("offset") Integer offset, @Param("limit") Integer pageSize);

    List<ClubMetaDO> queryAll();

    List<ClubMetaDO> queryByIds(@Param("clubIds")List<Long> clubIds);
}